/* eslint-disable jsdoc/require-param */
'use strict';

/**
 * 话题分类
 */
function initCategory(router, controller) {
  router.post('/api/category/add', controller.category.add);
  router.post('/api/category/edit', controller.category.edit);
  router.get('/api/category/query', controller.category.query);
  router.get('/api/category/queryUserPublish', controller.category.queryUserPublish);
  router.delete('/api/category/delete', controller.category.delete);
  //广场推荐分类
  router.get('/api/category/recommend', controller.category.recommend);
}

module.exports = initCategory;
